How Gems Are Formed